package com.hospital.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hospital.domain.Remark;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RemarkDao extends BaseMapper<Remark> {

    List<Remark> selectRemarkByDoctorID(int doctorID);

    @Insert("insert into remarkinfo values(null,#{content},curdate(),#{doctorID},#{userID})")
    void addRemarkByUserIDAndDoctorID(@Param("userID") int userID,@Param("doctorID") int doctorID, @Param("content") String content);
}
